<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生输入</title>
</head>
<body>
<h1>添加学生</h1>
<form action="/studentInput" method="POST">
    <label for="name">姓名:</label>
    <input type="text" id="name" name="name" required>
    <br>

    <label for="age">年龄:</label>
    <input type="number" id="age" name="age" required>
    <br>

    <label for="major">专业:</label>
    <input type="text" id="major" name="major" required>
    <br>

    <input type="submit" value="提交">
</form>
</body>
</html>